<%@ page language="java" import="java.util.*,com.jiankang.entity.*,com.jiankang.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'imglist.jsp' starting page</title>
    
	<link href="<%=request.getContextPath() %>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script language="javascript">
$(function(){	
	//导航切换
	$(".imglist li").click(function(){
		$(".imglist li.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>
</head>


<body>
<c:if test="${empty currentUser}">
<jsp:include page="404.jsp"/>
</c:if>
<c:if test="${!empty currentUser}">

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="">首页</a></li>
    <li><a href="">模块设计</a></li>
    <li><a href="">图片</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <li class="click"><span><img src="<%=request.getContextPath() %>/images/t01.png" /></span>
        <a href="<%=basePath%>homepictures/insertboudoir">添加</a>
        </li>
     
        </ul>
    
    </div>
    
    <ul class="imglist">
    <c:forEach items="${listhome}" var="bookitem" varStatus="s">
    <c:forEach items="${listlarg}" var="larg">
					<c:if test="${bookitem.picid==larg.id}">
    
    <li class="selected">
    <span><img src="<%=Data.URL.base%>${bookitem.images}" width="168px" height="126px"/></span>
    <h2><a href="">${bookitem.title}</a></h2>
    <p><a href="<%=basePath%>homepictures/editupdate/${bookitem.id}">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=basePath%>homepictures/deletehome/${bookitem.id}">删除</a></p>
    </li>
    </c:if>
    </c:forEach>
    </c:forEach>
    </ul>
    
   
    <div class="pagin">
    	<div class="message">共<i class="blue">${pageination.totalCount}</i>条记录，当前显示第&nbsp;<i class="blue">${pageination.page}&nbsp;</i>页</div>
    	<c:if test="${pageination.totalPage>1}">
   <c:if test="${pageination.page>1}">
   <a href="<%=basePath%>homepictures/backstagesickness?curPage=${1}">首页</a>|
   <a href="<%=basePath%>homepictures/backstagesickness?curPage=${pageination.page-1}">上一页</a>|
   </c:if>
   </c:if>
   
    <c:if test="${pageination.page!=pageination.totalPage}">
   <a href="<%=basePath%>homepictures/backstagesickness?curPage=${pageination.page+1}">下一页</a>|
    <a href="<%=basePath%>homepictures/backstagesickness?curPage=${pageination.totalPage}">尾页</a>|
    </c:if>
      
    </div>
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="<%=basePath%>/images/ticon.png" /></span>
        <div class="tipright">
        <p>是否确认对信息的修改 ？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    </div>
    
</c:if>
</body>
</html>
